package com.pisoCalc.configuracion;

import java.util.MissingResourceException;
import java.util.ResourceBundle;

public class LeerConfiguracion {
	
	public static String leerValor(String clave){
		String valor = "";
		boolean configOpc = false;
		try {
			valor = ResourceBundle.getBundle("configuracion").getString(clave);
			configOpc = true;
		} catch (MissingResourceException e) {
			configOpc = false;
		}
		
		if(!configOpc){
			try {
				valor = ResourceBundle.getBundle("com.pisoCalc.configuracion.configuracion").getString(clave);
			} catch (MissingResourceException e) {
				//configOpc = false;
			}
		}
		
		return valor;		
	}
}
